Arduino by Example by 2015
If you watched your Serial Monitor while doing this, you will have noticed that it takes quite some time to acquire the DHCP settings. For example, IP Addr is the unique number given by the router to allow CC3000 to connect to the router. However, what happens sometimes is that the router is restarted (power outage), thus the IP address might change. Since ultimately we will not be always monitoring the Serial Monitor for IP Addr, let us give it a constant, one that solves both the problems, namely, the long time it takes to get DHCP settings and the possibility of the IP address changing. Use the latest driverpatch_X_XX.ino example to update the firmware if it isn't updated already.
Load the buildtest_staticIP.ino file that came with this book. The main difference in this code is that we have uncommented a part of the code (highlighted in the following image) and changed the IP address to match the preceding image: